﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FJASPX.Service;
using NHibernate.Criterion;

namespace PlugNT.Cms.Web.Home.Control
{
    public partial class ProductClass : System.Web.UI.UserControl
    {
        public IProductClassService iProductClassService { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public IList<FJASPX.Domain.ProductClass> GetProductClass()
        {
            long totalCount = 0;
            ICriterion criterion = null;// Expression.Eq("UserName", Request.QueryString["User"]);
            List<Order> orders = new List<Order>();
            orders.Add(new Order("TimeStamp", false));
            return iProductClassService.PagedQuery(criterion, orders, 0, 20, out totalCount);
        }
    }
}